/**
* @author Meng Zhang
**/

#pragma once
#include "TextBufferFactory.h"
#include "../mvc/MVC.h"

class TextBuffer : public BufferBase {
public:
	TextBuffer(int _docId , const TCHAR *pathFileName = NULL);
	~TextBuffer();
	
	//virtual bool IsTextBuffer() const { return true; }
	int DocId() const { return docId; }
	const CString& PathFilename() const { return pathFilename; }
	
	bool IsDirty() const { return isDirty; }
	void IsDirty(bool val) { isDirty = val; }

	std::string GetProjectPath();

private:
	int docId;
	CString pathFilename;
	bool isDirty;//need save?
};
